package com.example.bookcar.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* 
* @TableName t_car_type
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarType implements Serializable {

    /**
    * id
    */
    @NotNull(message="[id]不能为空")
    @ApiModelProperty("id")
    private Long id;
    /**
    * 名称
    */
    @NotBlank(message="[名称]不能为空")
    @ApiModelProperty("名称")
    private String name;
    /**
    * 最低价格
    */
    @ApiModelProperty("最低价格")
    private BigDecimal price;
    /**
    * 排序
    */
    @ApiModelProperty("排序")
    private Integer sort;
}
